package com.crazypos.pojo.bo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class AdminCreateUserBO {

    @NotNull
    @Min(value = 2, message = "用户昵称长度不能小于2")
    private String name;

    @NotNull
    @Min(value = 6, message = "账号长度不能小于6")
    private String account;

    @NotNull
    @Min(value = 6, message = "密码长度不能小于6")
    private String password;

    @NotNull
    @Min(value = 6, message = "确认密码长度不能小于6")
    private String confirmPassword;

    @NotNull
    @Min(value = 4, message = "pin长度不能小于4")
    private String pin;

    @NotNull(message = "机构ID不能为空")
    private String organizationId;

    @Email(message = "请输入正确的邮箱")
    @NotNull(message = "邮箱不能为空")
    private String email;

    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态输入异常")
    @Min(value = 1, message = "状态输入异常")
    private Integer isActive;
}
